package com.glela.goods.mapper;

import com.glela.goods.model.GoodsNavigate;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface GoodsNavigateMapper {

	/**
	 * 根据商品id查询商品介绍图
	 * 
	 * @author houmf
	 * @param goodId
	 * @return
	 */
	public List<GoodsNavigate> selectGoodsNavigateByGoodId(long goodId);

	/**
	 * 根据商品id查询商品介绍图 查询第一张
	 * 
	 * @author houmf
	 * @param goodId
	 * @return
	 */
	public GoodsNavigate selectGoodsNavigateByGoodIdGetOne(long goodId);

	/**
	 * 根据商品id集合查询商品图片集合
	 * 
	 * @author chengzhequan
	 * @param goodsIds
	 * @return
	 */
	public List<GoodsNavigate> selectGoodImgByGoodIdList(@Param("goodsIds")Collection<Long> goodsIds);

    public void insertSelectiveBatch(@Param("goodsNavigateList") List<GoodsNavigate> goodsNavigateList);
	/**
	 * @Description: 根据商品Id删除轮播图
	 * @Author: zhangrenjie
	 * @Date: 2018/2/1 14:24
	 *
	 */
    public void deleteByGoodId(@Param("goodId") long goodId);
}
